<template>
	<page-body>
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center xqdetails_flex_0_higd"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub xqdetails_fd0_0_higd'>
					<view class='flex flex-wrap align-center xqdetails_fd0_0_c0_higd' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  xqdetails_fd0_0_c0_c0_higd'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='xqdetails_fd0_0_c1_c0_higd'>{{title}}</text>
					</view>
					<view class='flex flex-wrap align-center justify-end xqdetails_fd0_0_c0_higd'>
						
						<!-- #ifndef MP-WEIXIN -->
						<text @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pagefengxian/list/wzdetails/wzdetails?aid=${ids}&title=${title}`" class='xqdetails_fd0_0_c2_c0_higd'>{{$t('详情')}}</text>
						<!-- #endif -->
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<template>
				<view class="flex flex-direction align-stretch benben-flex-layout xqdetails_flex_1_higd">
					<view class='flex flex-wrap align-center xqdetails_fd1_0_higd'>
						<view class='flex flex-wrap align-center xqdetails_fd1_0_c0_higd'>
							<text>{{$t('评估时间')}}</text>
						</view>
						<view class='flex flex-wrap align-center'>
							<text class='xqdetails_fd1_0_c1_c0_higd'>{{info.list.pgsj}}</text>
						</view>
						<view class='flex flex-wrap align-center xqdetails_fd1_0_c2_higd'>
							<text class='xqdetails_fd1_0_c2_c0_higd'>{{info.list.wtzt_name}}</text>
						</view>
					</view>
					<view class='flex flex-wrap align-center xqdetails_fd1_0_higd'>
						<view class='flex flex-wrap align-center xqdetails_fd1_0_c0_higd'>
							<text>{{$t('评估人')}}</text>
						</view>
						<view class='flex flex-wrap align-center'>
							<text class='xqdetails_fd1_0_c1_c0_higd'>{{info.list.user_real_name}}</text>
						</view>
					</view>
					<view class='flex flex-wrap align-center xqdetails_fd1_0_higd'>
						<view class='flex flex-wrap align-center xqdetails_fd1_0_c0_higd'>
							<text>{{$t('评分分值')}}</text>
						</view>
						<view class='flex flex-wrap align-center'>
							<text class='xqdetails_fd1_0_c1_c0_higd'>{{info.list.pfz}}</text>
						</view>
					</view>
					<view class='flex align-stretch xqdetails_fd1_0_higd'>
						<view class='flex align-start xqdetails_fd1_0_c0_higd'>
							<text>{{$t('问题描述')}}</text>
						</view>
						<view class='flex align-stretch flex-sub'>
							<text class='xqdetails_fd1_0_c1_c0_higd'>{{info.list.wtms?info.list.wtms:'无'}}</text>
						</view>
					</view>
					<template v-if=" info.list.file.length!=0">
						<view class='flex flex-wrap align-center'>
							<image class='xqdetails_fd1_4_c0_higd' v-for='(child,key1) in info.list.file'
								@tap.stop="multiImagePreview(child,info.list.file,'')" :key='key1' mode="aspectFill"
								:src='child'></image>
						</view>
					</template>
					<template   v-if=" info.list.video.length!=0">
						<view class='flex flex-wrap align-center' v-for='(item,key0) in info.list.video' :key='key0'>
							<view class="xqdetails_fd1_5_higd" style="position: relative;" v-if="uptype==0"  @tap.stop="mixinToPlayVideo(item.path)">
								<image class='flex  xqdetails_fd1_5_higd' :src="item.thumb" mode="aspectFill"></image>
								<image
									style="position: absolute;width: 88rpx;height: 88rpx;left: 50%;top: 50%;margin-top: -44rpx;margin-left: -44rpx;z-index:9;"
									:src='STATIC_URL+"247.png"' mode=""></image>
							</view>
							<video class='flex  xqdetails_fd1_5_higd' v-if="uptype==2" :poster="item.thumb" :src="item.path" controls='true'
								x5-video-player-type="h5" :enable-progress-gesture='true' object-fit="fill"></video>
						</view>
					</template>


				</view>
			</template>

			<!---flex布局flex布局结束-->
			<!---flex布局2flex布局开始-->
			<template v-if="info.info.length!=0">
				<view class="" v-for="(item,index) in info.info">
					<view class="flex flex-direction align-stretch benben-flex-layout xqdetails_flex_2_higd">
						<view class='flex flex-wrap align-center'>
							<text class='xqdetails_fd2_0_c0_higd'>{{$t('问题整改')}}</text>
						</view>
						<view class='flex flex-wrap align-center xqdetails_fd2_1_higd'>
							<view class='flex flex-wrap align-center xqdetails_fd2_1_c0_higd'>
								<text>{{$t('整改时间')}}</text>
							</view>
							<view class='flex flex-wrap align-center'>
								<text class='xqdetails_fd2_1_c1_c0_higd'>{{item.zg_info.update_time}}</text>
							</view>
						</view>
						<view class='flex flex-wrap align-center xqdetails_fd2_1_higd'>
							<view class='flex flex-wrap align-center xqdetails_fd2_1_c0_higd'>
								<text>{{$t('整改人')}}</text>
							</view>
							<view class='flex flex-wrap align-center'>
								<text class='xqdetails_fd2_1_c1_c0_higd'>{{item.zg_info.user_real_name}}</text>
							</view>
						</view>
						<view class='flex align-stretch xqdetails_fd2_1_higd'>
							<view class='flex align-start xqdetails_fd2_1_c0_higd'>
								<text>{{$t('整改备注')}}</text>
							</view>
							<view class='flex align-stretch flex-sub'>
								<text
									class='xqdetails_fd2_1_c1_c0_higd'>{{item.zg_info.zgyj?item.zg_info.zgyj:'无'}}</text>
							</view>
						</view>

						<template v-if=" item.zg_info.zgtp.length!=0">
							<view class='flex flex-wrap align-center xqdetails_fd2_4_higd'>
								<image class='xqdetails_fd2_4_c0_higd' v-for='(child,key1) in item.zg_info.zgtp'
									:key='key1' @tap.stop="multiImagePreview(child,item.zg_info.zgtp,'')"
									mode="aspectFill" :src='child'></image>
							</view>
						</template>
						<template v-for='(items,key0) in item.zg_info.video'>
							<view class='flex flex-wrap align-center xqdetails_fd2_4_higd'
								v-if=" item.zg_info.video.length!=0" :key='key0'>
								<view class="xqdetails_fd2_5_higd" style="position: relative;"
									@tap.stop="mixinToPlayVideo(items.path)">
									<image class='flex  xqdetails_fd2_5_higd' :src="items.thumb" mode="aspectFill">
									</image>
									<image
										style="position: absolute;width: 88rpx;height: 88rpx;left: 50%;top: 50%;margin-top: -44rpx;margin-left: -44rpx;z-index:9;"
										:src='STATIC_URL+"247.png"' mode=""></image>
								</view>
								<!-- <video class='flex  xqdetails_fd2_5_higd' :poster="items.thumb" :src="items.path" controls='true'
									x5-video-player-type="h5" :enable-progress-gesture='true' object-fit="fill"></video> -->

							</view>
						</template>

					</view>
					<view class="flex flex-direction align-stretch benben-flex-layout xqdetails_flex_3_higd"
						v-if="item.sh_info.aid">
						<view class='flex flex-wrap align-center'>
							<text class='xqdetails_fd3_0_c0_higd'>{{$t('问题审核')}}</text>
						</view>
						<view class='flex flex-wrap align-center xqdetails_fd3_1_higd'>
							<view class='flex flex-wrap align-center xqdetails_fd3_1_c0_higd'>
								<text>{{$t('审核意见')}}</text>
							</view>
							<view class='flex flex-wrap align-center'>
								<text class='xqdetails_fd3_1_c1_c0_higd'>{{item.sh_info.shyj}}</text>
							</view>
						</view>
						<view class='flex align-stretch xqdetails_fd3_1_higd'>
							<view class='flex align-start xqdetails_fd3_1_c0_higd'>
								<text>{{$t('审核备注')}}</text>
							</view>
							<view class='flex align-stretch flex-sub'>
								<text
									class='xqdetails_fd3_1_c1_c0_higd'>{{item.sh_info.shbz?item.sh_info.shbz:'无'}}</text>
							</view>
						</view>
					</view>

				</view>
			</template>


			<!---flex布局3flex布局结束-->
			<!---flex布局4flex布局开始-->
			<view class="flex flex-wrap align-center justify-center benben-flex-layout" @tap.stop="handleJumpDiy"
				data-type="back" data-url="1"
				v-if="(type==1 && shzt==1) ||(type==3&&shzt!=4&&shzt!=2) ||(type==2&&shzt!=4 &&shzt!=3)">
				<button class='xqdetails_fd4_0_higd'>{{$t('下一项')}}</button>
			</view>

			<!---flex布局4flex布局结束-->
			<!-- #ifdef MP-WEIXIN -->
			<view class="btn-fixed" @tap.stop="handleJumpDiy" data-type="navigateTo"
				:data-url="`/pagefengxian/list/wzdetails/wzdetails?aid=${ids}&title=${title}`">
				详情
			</view>
			<!-- #endif -->
		</view>
	</page-body>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'
	import { SERVER_TYPE } from '@/common/config.js'
	export default {
		components: {},


		data() {
			return {
				"info": {
					"list": {
						"user_real_name": "",
						"pfz": "",
						"pgsj": "",
						"wtzt": "",
						"wtms": "",
						"wtzt_name": "",
						"file": [],
						"video": []
					},
					info: [{
						"zg_info": {
							"aid": "",
							"update_time": "",
							"zgtp": [],
							"zgyj": "",
							"user_real_name": "",
							"video": []
						},
						"sh_info": {
							"aid": "",
							"shyj": "",
							"shbz": ""
						}
					}]
				},
				"id": "10",
				"title": "",
				"ids": "",
				"type": "",
				"shzt": "",
				uptype:0,// 服务端类型 0:赛诸葛（现在oss)  1  mock  2:其他（本地上传)
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {
			let {
				id,
				title,
				ids,
				type,
				shzt
			} = options
			if (id !== undefined) this.id = id
			if (title !== undefined) this.title = title
			if (ids !== undefined) this.ids = ids
			if (type !== undefined) this.type = type
			if (shzt !== undefined) this.shzt = shzt
			this.getra741774c73f9bFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.uptype=SERVER_TYPE
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//查询问题详情-风险评估
			async getra741774c73f9bFunc() {
				//请求方法
				//数据验证

				let datainfo = await this.$api.get(global.apiUrls.post6741774c73f9b, {
					aid: this.id
				});

				if (datainfo.data.code != 1) {
					this.$message.info(datainfo.data.msg);
					return
				}
				let infoinfo = datainfo.data;
				this.info = infoinfo.data

			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;

		.xqdetails_fd4_0_higd {
			border-radius: 44rpx;
			width: 686rpx;
			line-height: 88rpx;
			font-size: 32rpx;
			background: #D32A29;
			color: #fff;
			height: 88rpx;
			margin: 86rpx 0rpx 68rpx 0rpx;
		}

		.xqdetails_flex_3_higd {
			margin: 0rpx 0rpx 0rpx 0rpx;
			padding: 28rpx 32rpx 0rpx 32rpx;
			background: rgba(255, 255, 255, 1);
			background-size: 100% auto;

			.xqdetails_fd3_0_c0_higd {
				color: #333;
				font-size: 32rpx;
				line-height: 45rpx;
				margin: 0rpx 0rpx 16rpx 0rpx;
				font-weight: 700;
			}
		}

		.xqdetails_fd3_1_higd {
			line-height: 40rpx;
			color: rgba(153, 153, 153, 1);
			font-size: 28rpx;
			margin: 0rpx 0rpx 28rpx 0rpx;
		}

		.xqdetails_fd3_1_c0_higd {
			width: 144rpx;
		}

		.xqdetails_fd3_1_c1_c0_higd {
			color: rgba(51, 51, 51, 1);
		}

		.xqdetails_flex_2_higd {
			margin: 16rpx 0rpx 16rpx 0rpx;
			background: rgba(255, 255, 255, 1);
			background-size: 100% auto;
			padding: 28rpx 32rpx 0rpx 32rpx;

			.xqdetails_fd2_0_c0_higd {
				color: #333;
				font-size: 32rpx;
				line-height: 45rpx;
				margin: 0rpx 0rpx 16rpx 0rpx;
				font-weight: 700;
			}

			.xqdetails_fd2_4_higd {
				margin: 0rpx 0 32rpx 0rpx;

				.xqdetails_fd2_4_c0_higd {
					width: 156rpx;
					height: 156rpx;
					border-radius: 8rpx;
					margin: 0rpx 16rpx 16rpx 0rpx;
				}
			}

			.xqdetails_fd2_5_higd {
				width: 100%;
				height: 300rpx;
				border-radius: 10rpx 10rpx 10rpx 10rpx;
			}
		}

		.xqdetails_fd2_1_higd {
			line-height: 40rpx;
			color: rgba(153, 153, 153, 1);
			font-size: 28rpx;
			margin: 0rpx 0rpx 28rpx 0rpx;
		}

		.xqdetails_fd2_1_c0_higd {
			width: 144rpx;
		}

		.xqdetails_fd2_1_c1_c0_higd {
			color: rgba(51, 51, 51, 1);
		}

		.xqdetails_flex_1_higd {
			margin: 16rpx 0rpx 16rpx 0rpx;
			background: rgba(255, 255, 255, 1);
			background-size: 100% auto;
			padding: 28rpx 32rpx 36rpx 32rpx;

			.xqdetails_fd1_4_c0_higd {
				width: 156rpx;
				height: 156rpx;
				border-radius: 8rpx;
				margin: 0rpx 16rpx 16rpx 0rpx;
			}

			.xqdetails_fd1_5_higd {
				width: 100%;
				height: 300rpx;
				border-radius: 10rpx 10rpx 10rpx 10rpx;
			}
		}

		.xqdetails_fd1_0_higd {
			line-height: 40rpx;
			color: rgba(153, 153, 153, 1);
			font-size: 28rpx;
			margin: 0rpx 0rpx 28rpx 0rpx;

			.xqdetails_fd1_0_c2_higd {
				margin: 0rpx 0rpx 0rpx auto;
				height: 40rpx;
				background: #448DF7;
				width: 96rpx;
				border-radius: 8rpx;

				.xqdetails_fd1_0_c2_c0_higd {
					color: var(--benbenFontColor3);
					font-size: 24rpx;
					width: 96rpx;
					text-align: center;
					line-height: 40rpx;
				}
			}
		}

		.xqdetails_fd1_0_c0_higd {
			width: 144rpx;
		}

		.xqdetails_fd1_0_c1_c0_higd {
			color: rgba(51, 51, 51, 1);
		}

		.xqdetails_flex_0_higd {
			width: 750rpx;
			height: 88rpx;
			overflow: hidden;
			z-index: 10;
			top: 0rpx;
			background: #fff;
			background-size: 100% auto !important;

			.xqdetails_fd0_0_higd {
				padding: 0rpx 32rpx 0rpx 32rpx;

				.xqdetails_fd0_0_c1_c0_higd {
					font-size: 36rpx;
					font-weight: 700;
					color: #333333;
					line-height: 50rpx;
				}
			}
		}

		.xqdetails_fd0_0_c0_higd {
			width: 120rpx;

			.xqdetails_fd0_0_c0_c0_higd {
				font-size: 36rpx;
				color: #333;
			}
		}

		.xqdetails_fd0_0_c2_c0_higd {
			font-size: 32rpx;
			color: rgba(211, 42, 41, 1);
		}
	}
</style>
